Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

204
Views
Webdriver io - Drag and Drop | Not able to see it happening but code passes

I am trying to implement the Drag and drop feature using webdriver io and the issue i am facing is that the code passes but i dont see dragging and dropping the file ..

X-paths are proper as it runs properly in selenium webdriver

npm -v
6.14.14

node -v
v14.17.4

Below is the code

get imageSource(){return $(`#source`)}
get imageDestination(){return $(`#destination`)}

async dragAndDropImage() {
        try {   
            
            await (await this.imageSource).waitForDisplayed()
            await (await this.imageDestination).waitForDisplayed()

            await this.imageSource.dragAndDrop(await this.imageDestination,{duration:6000})
            
            await browser.pause(10000)

        } catch (err) {
            err.message=`Error when dragging image file`
            throw err
        }
    }

enter image description here

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!